<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:f="http://xmlns.jcp.org/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{mensagens.ViewFilmeTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputText value="#{mensagens.ViewFilmeLabel_idFilme}"/>
                    <h:outputText value="#{filmeController.selected.idFilme}" title="#{mensagens.ViewFilmeTitle_idFilme}"/>
                    <h:outputText value="#{mensagens.ViewFilmeLabel_titulo}"/>
                    <h:outputText value="#{filmeController.selected.titulo}" title="#{mensagens.ViewFilmeTitle_titulo}"/>
                    <h:outputText value="#{mensagens.ViewFilmeLabel_capa}"/>
                    <h:outputText value="#{filmeController.selected.capa}" title="#{mensagens.ViewFilmeTitle_capa}"/>
                    <h:outputText value="#{mensagens.ViewFilmeLabel_duracao}"/>
                    <h:outputText value="#{filmeController.selected.duracao}" title="#{mensagens.ViewFilmeTitle_duracao}"/>
                    <h:outputText value="#{mensagens.ViewFilmeLabel_descricao}"/>
                    <h:outputText value="#{filmeController.selected.descricao}" title="#{mensagens.ViewFilmeTitle_descricao}"/>
                    <h:outputText value="#{mensagens.ViewFilmeLabel_preco}"/>
                    <h:outputText value="#{filmeController.selected.preco}" title="#{mensagens.ViewFilmeTitle_preco}"/>
                    <h:outputText value="#{mensagens.ViewFilmeLabel_midiaIdMidia}"/>
                    <h:outputText value="#{filmeController.selected.midiaIdMidia}" title="#{mensagens.ViewFilmeTitle_midiaIdMidia}"/>
                    <h:outputText value="#{mensagens.ViewFilmeLabel_categoriaIdCategoria}"/>
                    <h:outputText value="#{filmeController.selected.categoriaIdCategoria}" title="#{mensagens.ViewFilmeTitle_categoriaIdCategoria}"/>
                </h:panelGrid>
                <br />
                <h:commandLink action="#{filmeController.destroyAndView}" value="#{mensagens.ViewFilmeDestroyLink}"/>
                <br />
                <br />
                <h:link outcome="Edit" value="#{mensagens.ViewFilmeEditLink}"/>
                <br />
                <h:commandLink action="#{filmeController.prepareCreate}" value="#{mensagens.ViewFilmeCreateLink}" />
                <br />
                <h:commandLink action="#{filmeController.prepareList}" value="#{mensagens.ViewFilmeShowAllLink}"/>
                <br />
                <br />
                <h:link outcome="/index" value="#{mensagens.ViewFilmeIndexLink}"/>

            </h:form>
        </ui:define>
    </ui:composition>

</html>
